3D modeling and ray tracing